<?php
$elform .= el::elFieldset('Informazioni Evento', 
	el::elText('Titolo del\' evento', 'eventname', '', array("size"=>'40'))
	.el::elC()
	.el::elSelect('Seleziona l\'istanza nella quale si svolger&agrave; l\'Evento','istanceid', $data->getAllIstanceCombo())
	.el::elC()
	.el::elSelect('Seleziona la configurazione del raid da usare','raidid', $data->getAllRaidCombo())
	.el::elC()
	.el::elCheck('Impedisci agli alt di iscriversi a questo Evento','onlymain',1)
	.el::elC()
	.el::elCheck('Impedisci alle spec secondarie di iscriversi a questo Evento','onlyprimaryspec',1)		
	.el::elC()
	.el::elTextArea('Commento del\'evento','comment',null, array("rows"=>"5","cols"=>"40"))
);

$elform .= el::elC(1);

$elform .= el::elFieldset("Impostazione Date",
	"Inizio Evento: "
	.el::elS()
	.el::elText('Data','startdate','',array("size"=>'10'))
	.el::elS()
	.el::elText('Orario','starttime','',array("size"=>'6'))
	.el::elC()
	." Durata Evento: "
	.el::elText('Ore di permanenza minime nell\'evento','endtime','',array("size"=>'3'))
	.el::elC()
	.elJquery::elJquerySlider("min","sliderendtime",'$("#endtime").val(ui.value)',array("value"=>3,"min"=>1,"max"=>10))
	.el::elC()
	."Scadenza Iscrizioni:"
	.el::elS()
	.el::elText('Ore prima della chiusura delle iscrizioni','duetime','',array("size"=>'3'))
	.el::elC()
	.elJquery::elJquerySlider("min","sliderduetime",'$("#duetime").val(ui.value)',array("value"=>12,"min"=>6,"max"=>48,"step"=>6))
	.el::elC()
	.'<script type="text/javascript">$(function(){$("#endtime").val($("#sliderendtime").slider("value"));$("#duetime").val($("#sliderduetime").slider("value"));});</script>'


);

$elButton = el::elButtonReset("clear_event", "Pulisci Campi").el::elS().el::elButton("new_event", "Nuovo Evento").el::elS().el::elButton("save_event", "Salva Evento");

$elform .= el::elHidden("eventid");

$form_new_event = new elStyleForm('Crea una nuovo Evento', 'censevent', $elform, $elButton);
$content .= $form_new_event->elStyleForm;

$content .= el::elC(1);

$content .= el::elDiv('action-wrapper', elJquery::elJqueryButton('Evento in Programmazione','event_p').elJquery::elJqueryButton('Eventi Scaduti','event_e'), array('align'=>'left'));

$content .= el::elC(1).el::elDiv('div_tbl_eventlist','');



$cssmodule .= "<link href=\"".config::getconfig("_site_url")."/main/css/jquery.ptTimeSelect.css\" rel=\"stylesheet\" type=\"text/css\">\n";
//$cssmodule .= "<link href=\"".config::getconfig("_site_url")."/main/js/markitup/skins/markitup/style.css\" rel=\"stylesheet\" type=\"text/css\">\n";
//$cssmodule .= "<link href=\"".config::getconfig("_site_url")."/main/js/markitup/sets/html/style.css\" rel=\"stylesheet\" type=\"text/css\">\n";
$jsmodule = "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/jquery.ptTimeSelect.js\" charset=\"iso-8859-1\"></script>\n";
//$jsmodule .= "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/markitup/jquery.markitup.js\" charset=\"iso-8859-1\"></script>\n";
//$jsmodule .= "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/markitup/sets/html/set.js\" charset=\"iso-8859-1\"></script>\n";
$jsmodule .= "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/mod/jsEvent.js\" charset=\"iso-8859-1\"></script>\n";
include("theme/default/index.php");
?>